<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>移动端</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        #root {
            width: 200px;
            height: 200px;
            background-size: 100%;
            background-image: url("./img/logo.png");
        }
        @media screen and (-webkit-min-device-pixel-ratio: 2) {
            #root{
                background-image: url("./img/logo@2x.png");
            }
        }
        @media screen and (-webkit-min-device-pixel-ratio: 3) {
            #root{
                background-image: url("./img/logo@3x.png");
            }
        }

    </style>
</head>
<body>
<div id="root"></div>
</body>
</html>